package com.broada.apm.model;

import java.io.Serializable;

/**
 * 监控对象基类
 * @author louyi Create By 2014年12月22日 下午1:41:47
 */
public abstract class BaseResource implements Serializable {
	public static enum RESOURCE_TYPE {
		NODE("node"), SERVICE("service"), RESOURCE("resource"),KEY_RESOURCE("key_resource"), APPLICATION("application"), DOMAIN("domain"), TRANSACTION("transaction");
		private String name;
		private RESOURCE_TYPE(String type){
			this.name = type;
		}
		public String getName() {
			return name;
		}
	}
	public BaseResource() {
	}
	/**
	 * <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
